<!DOCTYPE html>
<html>
	<!--
    	作者：刘琳琳
    	时间：2018-09-21
    	描述：新增用户信息
    -->
	<head>
		<meta charset="utf-8" />
		<title>新增用户信息</title>
		<link  rel="stylesheet" href="../../../base/plugins/layui-v2.4.3/layui/css/layui.css" media="all"/>
	</head>
	<style type="text/css">
		.leftbackground{
			background-color:#23262E;
			height: 100%;
			width: 200px;
		}
		
		
	</style>
	
<body>
		<!--表单-->
		
		<fieldset class="layui-elem-field layui-field-title">
			<legend>新增用户信息</legend>
		</fieldset>
		<form class="layui-form">
			<input type="hidden"  name="baseModel.token" id="token" />
		    <input type="hidden"  name="user.user_id" id="userId" />
		     <input type="hidden"  name="user.version" id="version" />
			<div class="layui-form-item">
				<label class="layui-form-label">*头像：</label>
				<img  id="showImg" src="../../../images/0.jpg" />
				<div class="layui-input-block">
					<input type="file"  placeholder="请上传图片" autocomplete="off" class="layui-input">
				</div>
			</div>
			 
			<div class="layui-form-item">
				<label class="layui-form-label">*账号：</label>
				<div class="layui-input-block">
					<input type="text" name="user.account" required  lay-verify="required" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">*姓名：</label>
				<div class="layui-input-block">
					<input type="text" name="user.name" required  lay-verify="required" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">*手机号码：</label>
				<div class="layui-input-block">
					<input type="text" name="user.phone" required  lay-verify="required|phone" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
			    <label class="layui-form-label">性别：</label>
			    <div class="layui-input-block">
			      <input type="radio" name="user.sex" value="0" title="保密">
			      <input type="radio" name="user.sex" value="1" title="男">
			      <input type="radio" name="user.sex" value="2" title="女">
			    </div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">*出生日期：</label>
				<div class="layui-input-block">
					<input type="text" id="birthday" name="user.birthday" required  lay-verify="required" placeholder="请选择时间" autocomplete="off" class="layui-input">
				</div>
			</div>
			
			<div class="layui-form-item">
			    <label class="layui-form-label">所属角色：</label>
			    <div class="layui-input-block roleList"> 
			    </div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">*备注：</label>
				<div class="layui-input-block">
					<textarea name="user.memo" placeholder="请输入备注" class="layui-textarea"></textarea>
				</div>
			</div>
			
			<div class="layui-form-item">
			    <div class="layui-input-block">
			      <button class="layui-btn updateUser" lay-submit lay-filter="updateUser">提交</button>
			      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
			      <button type="" class="layui-btn layui-btn-danger">关闭</button>
			    </div>
			</div>
		</form>

	<script type="text/javascript" src="../../../base/js/jquery-1.11.3.min.js" ></script>
	 <script type="text/javascript" src="../../../base/plugins/layui-v2.4.3/layui/layui.js" ></script>
		<script src="js/updateUser.js"></script>
	</body>
</html>
